package com.sunplus.system.registration.mapper;

import java.util.List;
import com.sunplus.system.registration.domain.PortalDictionaries;

/**
 * 字典码Mapper接口
 * 
 * @author sunplus
 * @date 2021-03-25
 */
public interface PortalDictionariesMapper 
{
    /**
     * 查询字典码
     * 
     * @param pid 字典码ID
     * @return 字典码
     */
    public PortalDictionaries selectPortalDictionariesById(String pid);

    /**
     * 查询字典码列表
     * 
     * @param portalDictionaries 字典码
     * @return 字典码集合
     */
    public List<PortalDictionaries> selectPortalDictionariesList(PortalDictionaries portalDictionaries);

    /**
     * 根据supcode获取信息
     * @param supCode
     * @return
     */
    public List<PortalDictionaries> findListBySupCode(String supCode);

    /**
     * 新增字典码
     * 
     * @param portalDictionaries 字典码
     * @return 结果
     */
    public int insertPortalDictionaries(PortalDictionaries portalDictionaries);

    /**
     * 修改字典码
     * 
     * @param portalDictionaries 字典码
     * @return 结果
     */
    public int updatePortalDictionaries(PortalDictionaries portalDictionaries);

    /**
     * 删除字典码
     * 
     * @param pid 字典码ID
     * @return 结果
     */
    public int deletePortalDictionariesById(String pid);

    /**
     * 批量删除字典码
     * 
     * @param pids 需要删除的数据ID
     * @return 结果
     */
    public int deletePortalDictionariesByIds(String[] pids);
}
